package com.qwz.example.client;

import com.qwz.example.factory.AbstractFactory;
import com.qwz.example.factory.Schema1;

public class Client {
    public static void main(String[] args){
        //创建装机工程师
        ComputerEngineer engineer = new ComputerEngineer();
        //客户选择并创建需要的组装方案
        AbstractFactory schma = new Schema1();
        //工程师组装
        engineer.makeComputer(schma);
    }
}
